# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=freedoom
pkgver=0.12.1
pkgrel=2
pkgdesc="an entirely free software game running on a Doom engine."
url="https://freedoom.github.io"
arch="noarch !s390x"
license="BSD-3-Clause-Clear"
makedepends="python3 py3-pillow make deutex asciidoc asciidoctor"
options="!check"
subpackages="$pkgname-doc"
source="
	https://github.com/freedoom/freedoom/releases/download/v$pkgver/freedoom-$pkgver.tar.xz
	support-python-pil-10.patch
	"

build() {
	make
	make -C manual
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="
08a8489e1bbd9418262bfefaa9afe67a281b6f3fd38f77ac822438da434229bb034077e53658c06fa93cbf3ba3c5c25dab5fe1844fe23043e310d21866e12810  freedoom-0.12.1.tar.xz
0a11c8f79ab8e289f5940596203f43e11ad2709709b9c9ee4e14304e18ab3d0b0991bc292f77b2fe06ada7addcb63537aeb270b1cf3d3b7455ca8913ceee5e73  support-python-pil-10.patch
"
